<template>
    <div>
        父组件传递下来的值: {{ root.count }}
        <Son />
    </div>
</template>

<script>
import Son from './son';

export default {
    components: {
        Son,
    },
    inject: ['root'],
    mounted () {
        // console.log(this);
    },
};
</script>

<style>

</style>
